<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title><%= @app_name %></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="An example Docker-based PAAS for creating Tomcat Applications">
    <meta name="author" content="James Turnbull">

    <!-- Le styles -->
    <%= stylesheet_link_tag "/css/bootstrap.css" %>
    <%= stylesheet_link_tag "/css/flash.css" %>
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="/img/favicon.ico">
  </head>

  <body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="/">TProv</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li class="active"><a href="<%= url('/') %>">Home</a></li>
            </ul>
          </div><!--/.nav-collapse -->
          <ul class="nav">
            <li><a href="<%= url('/tomcat/list') %>">List current instances</a></li>
          </ul>
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row-fluid">
             <%= styled_flash %>
             <%= yield %>
      </div><!--/row-->

      <hr>

      <footer>
        <p>&copy; James Turnbull 2014</p>
      </footer>

    </div><!--/.fluid-container-->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <%= javascript_script_tag "/js/jquery.js" %>
    <%= javascript_script_tag "/js/bootstrap.min.js" %>
  </body>
</html>
